package com.fy.dao;

import com.fy.entity.Museum;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface MuseumMapper {

    @Select("select *from museum")
    List<Museum> findAll();

    @Insert("insert into museum(mus_id, mu_id) VALUES (#{mus_id},#{mu_id})")
    int insert(@Param("mus_id") String mus_id, @Param("mu_id") String mu_id);
}
